package com.geely.club.util.common;

import com.geely.club.BuildConfig;

/**
 * Created by mengyangyang on 2015-10-15.
 */
public class ServerConfig {
    //    static boolean isLocalServer = true;
    static boolean isLocalServer = false;

    public static final String PIC_HOST;
    public static final String SERVER_HOST;
    public static final String APP_KEY;
    public static final String SECRET_KEY;
    public static final String SERVER_URL;

    static {
        if (!BuildConfig.DEBUG || !isLocalServer) {//正式环境
            PIC_HOST = "http://www.igap.cn/static/file/";
            SERVER_HOST = "http://www.igap.cn/gap/";
            APP_KEY = "1001";
            SECRET_KEY = "303F8C675EA558E479C5BD5C86B23931";
            SERVER_URL = "http://www.igap.cn/gap/rest/service.htm";

        } else {//测试环境
            PIC_HOST = "http://dev.igap.cn/";
            SERVER_HOST = "http://dev.igap.cn/gap/";
            APP_KEY = "1000";
            SECRET_KEY = "43EA5DDC21412AA8BCFAF27085EC055E";
            SERVER_URL = "http://dev.igap.cn/gap/rest/service.htm";

        }
    }

//
//	//正式环境
//	public final static String PIC_HOST = "http://www.igap.cn/static/module.cloud.file/";
//	public static final String SERVER_HOST = "http://www.igap.cn/gap/";
//    public static final String APP_KEY = 1001;
//    public static final String SECRET_KEY = "303F8C675EA558E479C5BD5C86B23931";
//    public static final String SERVER_URL = "http://www.igap.cn/gap/rest/service.htm";
}
